package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收料通知单箱码明细对象 biz_receipt_barcode
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class BizReceiptBarcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收料箱码明细ID，主键 */
    private Long receiptBarcodeId;

    /** 收料通知单ID */
    @Excel(name = "收料通知单ID")
    private Long receiptNoteId;

    /** 收料通知单编号 */
    @Excel(name = "收料通知单编号")
    private String receiptNoteNo;

    /** 箱码ID */
    @Excel(name = "箱码ID")
    private Long barcodeId;

    /** 箱码 */
    @Excel(name = "箱码")
    private String barcode;

    /** 采购订单明细ID */
    @Excel(name = "采购订单明细ID")
    private Long itemId;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String orderNo;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private String inventoryCode;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 装箱数量 */
    @Excel(name = "装箱数量")
    private BigDecimal packQuantity;

    /** 计量单位编码 */
    @Excel(name = "计量单位编码")
    private String unitCode;

    /** 箱码状态：RECEIVED-已收货, INSPECTING-检验中, QUALITY_PASSED-检验合格, QUALITY_FAILED-检验不合格 */
    @Excel(name = "箱码状态：RECEIVED-已收货, INSPECTING-检验中, QUALITY_PASSED-检验合格, QUALITY_FAILED-检验不合格")
    private String barcodeStatus;

    /** 质检结果：PASS-合格, FAIL-不合格 */
    @Excel(name = "质检结果：PASS-合格, FAIL-不合格")
    private String qualityResult;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setReceiptBarcodeId(Long receiptBarcodeId) 
    {
        this.receiptBarcodeId = receiptBarcodeId;
    }

    public Long getReceiptBarcodeId() 
    {
        return receiptBarcodeId;
    }
    public void setReceiptNoteId(Long receiptNoteId) 
    {
        this.receiptNoteId = receiptNoteId;
    }

    public Long getReceiptNoteId() 
    {
        return receiptNoteId;
    }
    public void setReceiptNoteNo(String receiptNoteNo) 
    {
        this.receiptNoteNo = receiptNoteNo;
    }

    public String getReceiptNoteNo() 
    {
        return receiptNoteNo;
    }
    public void setBarcodeId(Long barcodeId) 
    {
        this.barcodeId = barcodeId;
    }

    public Long getBarcodeId() 
    {
        return barcodeId;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setInventoryCode(String inventoryCode) 
    {
        this.inventoryCode = inventoryCode;
    }

    public String getInventoryCode() 
    {
        return inventoryCode;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setPackQuantity(BigDecimal packQuantity) 
    {
        this.packQuantity = packQuantity;
    }

    public BigDecimal getPackQuantity() 
    {
        return packQuantity;
    }
    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }
    public void setBarcodeStatus(String barcodeStatus) 
    {
        this.barcodeStatus = barcodeStatus;
    }

    public String getBarcodeStatus() 
    {
        return barcodeStatus;
    }
    public void setQualityResult(String qualityResult) 
    {
        this.qualityResult = qualityResult;
    }

    public String getQualityResult() 
    {
        return qualityResult;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receiptBarcodeId", getReceiptBarcodeId())
            .append("receiptNoteId", getReceiptNoteId())
            .append("receiptNoteNo", getReceiptNoteNo())
            .append("barcodeId", getBarcodeId())
            .append("barcode", getBarcode())
            .append("itemId", getItemId())
            .append("orderNo", getOrderNo())
            .append("inventoryCode", getInventoryCode())
            .append("batchNo", getBatchNo())
            .append("packQuantity", getPackQuantity())
            .append("unitCode", getUnitCode())
            .append("barcodeStatus", getBarcodeStatus())
            .append("qualityResult", getQualityResult())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
